import request from '@/utils/request'
//添加系统用户
export function sysUser_add(data) {
	return request({
		url: '/api/sysUser/add',
		method: 'post',
		data
	})
}
//修改系统用户
export function sysUser_update(data) {
	return request({
		url: '/api/sysUser/update',
		method: 'post',
		data
	})
}
//删除系统用户
export function sysUser_delete(data) {
	return request({
		url: '/api/sysUser/delete/' + data.id,
		method: 'post',
		data
	})
}
//系统用户详情
export function sysUser_info(param) {
	return request({
		url: '/api/sysUser/info/' + param.id,
		method: 'get',
		param
	})
}
//系统用户分页列表
export function sysUser_getPageList(data) {
	return request({
		url: '/api/sysUser/getPageList',
		method: 'post',
		data
	})
}
//修改密码
export function sysUser_updatePassword(data) {
	return request({
		url: '/api/sysUser/updatePassword',
		method: 'post',
		data
	})
}
//管理员重置用户密码
export function sysUser_resetPassword(data) {
	return request({
		url: '/api/sysUser/resetPassword',
		method: 'post',
		data
	})
}
//修改头像
export function sysUser_uploadHead(data) {
	return request({
		url: '/api/sysUser/uploadHead',
		method: 'post',
		data
	})
}
